/* 
 * File:   GUI.h
 * Author: matt
 *
 * Created on 16 May 2010, 18:42
 */

#ifndef _GUI_H
#define	_GUI_H
#include <QWidget>
#include <QLayout>
#include <QGridLayout>
#include <QTimer>
#include <QCheckBox>
#include "QCamera.h"
#include "QImageDisplay.h"
#include "QImageLoader.h"
#include "QTimeSlice.h"
#include "QImageSaver.h"

class GUI : public QWidget{
    Q_OBJECT
public:
    GUI();
    virtual ~GUI();
private slots:
    void setWebcam(bool);
private:
    QLayout *layout;
    QImageDisplay *display;
    QImageLoader *imageloader;
    QTimeSlice *timeslice;
    QCamera *camera;
    QImageSaver *imagesaver;
    QTimer *timer;
    QCheckBox *cam_enable;
    bool use_cam;

};

#endif	/* _GUI_H */

